#ifndef REGISTERPAGE_H
#define REGISTERPAGE_H

#include <fileio.h>
#include <user.h>
#include <QString>
#include <QWidget>
#include <QMessageBox>
namespace Ui {
class RegisterPage;
}

class RegisterPage : public QWidget
{
    Q_OBJECT
private:
    Ui::RegisterPage *ui;
    FileIO *userFile;
public:
    explicit RegisterPage(QWidget *parent = 0);
    ~RegisterPage();

signals:
    void toPage(QString page);
    void destory();
private slots:
    void on_registerButton_clicked();

    void on_loginButton_clicked();



};

#endif // REGISTERPAGE_H
